<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %>
<%@ include file="/WEB-INF/tiles2/common.jsp" %>
<div class="masthead">
	<a href="index.mvc"><img src="img/main/Sunmin.png" class="margin"></a>
	<ul class="fright">
		<c:if test="${empty sessionScope.loginUID }">
			<li><a class="member fblack " role="button" data-toggle="modal" data-target="#loginmodal">Login</a></li>
			<li><a class="member fblack fclear " href="join/agree.mvc" >Join us</a></li>
		</c:if>
		<c:if test="${not empty sessionScope.loginUID }">
			<li><a class="member fblack " role="button" id="logoutbtn">Logout</a></li>
			<li><a class="member fblack fclear " href="mypage/mypage.mvc" >My page</a></li>
		</c:if>
		<li><a class="member fblack fclear " href="mypage/mypage.mvc"> Cart </a></li>
		<li><a class="member fblack fclear " href="board/list.mvc"> Q&A </a></li>
	</ul>
	<div class="navbar fclear">
		<div class="navbar-tabs">
			<ul class="nav">
				<li class="${intro}"><a href="intro/intro.mvc">About Us</a></li>
				<li class="${man}"><a href="man/tlist.mvc">man</a></li>
				<li class="${woman}"><a href="woman/tlist.mvc">woman</a></li>
				<li class="${accessory}"><a href="accessory/cap.mvc">accessory</a></li>
				<li class="${sale}"><a href="sale/slist.mvc">sale</a></li>
				<li class="${event}"><a href="event/list.mvc">event</a></li>			
			</ul>
		</div>
	</div>
</div>
<script type="text/javascript">
$("#logoutbtn").on("click",function(event){
	$(location).attr("href","<c:url value='/admin/logout.mvc'/>");
});
</script>





